home *** CD-ROM | disk | FTP | other *** search
- {$A+,B-,D-,E-,F-,G-,I-,L-,N-,O-,R-,S-,V+,X-}
- Unit Test286;
-
- Interface
-
- Implementation
-
- Function Is286Able: Boolean; Assembler;
- Asm
- Pushf
- Pop Bx
- And Bx,0Fffh
- Push Bx
- Popf
- Pushf
- Pop Bx
- And Bx,0F000h
- Cmp Bx,0F000h
- Mov Ax,0
- Jz @@1
- Mov Ax,1
- @@1:
- End;
-
- Begin
- If Not Is286Able Then
- Begin
- Writeln('Es necesario un procesador 80286 o superior '+
- #13+'para ejecutar este programa');
- Halt(1);
- End;
- End.
-